﻿<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico"/>
    <script type="text/javascript" src="/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/lib/respond.min.js"></script>
    <script type="text/javascript" src="/js/vue/vue.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
    <script type="text/javascript" src="/lib/respond.min.js"></script>
    <script type="text/javascript" src="/lib/layui/layui.all.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <script type="text/javascript" src="/lib/respond.min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <title>管理员列表</title>
</head>
<body>

    <div id="app" style="height: 500px">
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="16">进货订单</th>
            </tr>
            <tr class="text-c">
                <th width="25"><input type="checkbox" id="boxall" name="" value=""></th>
                <th width="40">ID</th>
                <th width="130">操作</th>
                <th width="150">业务日期</th>
                <th width="150">单据编号</th>
                <th width="90">处理状态</th>
                <th width="90">审核人</th>
                <th width="130">供应商名称</th>
                <th width="150">进货订单商品</th>
                <th width="100">进货订单数量</th>
                <th width="100">应付金额</th>
                <th width="70">纸质单据</th>
                <th width="150">制单日期</th>
                <th width="90">经手人</th>
                <th width="90">制单人</th>
                <th width="150">备注</th>
            </tr>
            </thead>
            <tbody>
            <tr class="text-c" v-for="(item,index) in result">
                <td><input type="checkbox" :value="item.id" id="box"></td>
                <td>{{index+1}}</td>
                <td class="td-manage">
                    <a style="text-decoration:none" class="ml-5"
                       @Click="article_edit('进货订单编辑','/cargomanagement/purchase-order/selectById?id='+(item.id),'1000')"
                       href="javascript:;" title="编辑">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a>
                    <a title="删除" href="javascript:;" @click="delEvent(item.id)" class="ml-5"
                       style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                    <a title="审核" href="javascript:;"
                       @click="stateEvent(item.id,item.poDate,item.poNumber,item.poState,item.poAuditor,item.poSupName,item.poClName,item.poQuantityOfPurchase,item.poYingMoney,item.poBill,item.poExperiencedPerson,item.poSinglePerson,item.poRemarks,item.poDateOrder)"
                       class="ml-5"
                       style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe644;</i>
                    </a>
                    <a title="详情" href="javascript:;"
                       @Click="article_xiang('进货订单详情','/cargomanagement/purchase-order/puXiang?id='+(item.id),'1000')"
                       class="ml-5" style="text-decoration:none">
                        <i class="icon Hui-iconfont" id="sta">&#xe627;</i>
                    </a>
                </td>
                <td>{{item.account}}</td>
                <td>{{item.operation}}</td>
                <td>{{item.username}}</td>
                <td>{{item.ip}}</td>
                <td>{{item.createDate}}</td>
                <td>{{item.account}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div id="pagenav" style="text-align: center"></div>
<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">


    var app = new Vue({
        el: '#app',
        data: {
            result: []
        }
    });

    var selectAllSystemLog = function (curr) {
        $.ajax({
            type: 'GET',
            dataType: 'json',
            url: '/systemsetup/system-log/selectSystemall',
            data: {
                /*当前页*/
                pageNum: curr || 1,
                /*每页大小*/
                pageSize: 3
            },
            success: function (msg) {
                app.result = msg.list;
                alert(app.result);
                laypage({
                    cont: 'pageNav',//容器  值支持id名、原生dom对象，jquery对象,
                    pages: msg.pages,//总页数
                    first: '首页',
                    last: '尾页',
                    skin: '#00A0E9',
                    curr: curr || 1,//初始化页数
                    jump: function (obj, first) { //触发分页后的回调
                        if (!first) {     //点击跳页触发函数自身，并传递当前页：obj.curr
                            selectAllSystemLog(obj.curr);
                        }
                    }
                });
            }
        });

    };
    selectAllSystemLog();
</script>
</body>
</html>